/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 邓大帅
 * Date: 2023-01-13
 * Time: 9:08
 */
public class Test {
    public static void main(String[] args) {
        SingleLinkedList list = new SingleLinkedList();
        list.createLink();
        /*list.display();
        list.addFirst(5);
        list.display();
        list.addLast(5);
        list.display();*/
        /*list.addIndex(2,1);
        list.display();
        boolean a = list.contains(2);
        System.out.println(a);
        int b = list.size();
        System.out.println(b);*/
        //list.addFirst(1);
        //list.remove(5);
        //list.display();
        list.removeAllKey(2);
        //list.addIndex(0,1);
        list.display();
    }
}
